home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / emacs-19.000 / emacs-19 / usr / local / info / emacs-20 < prev    next >
Encoding:
GNU Info File  |  1995-09-11  |  46.2 KB  |  1,176 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.55 from the
  2. input file emacs.texi.
  3.  
  4. 
  5. File: emacs,  Node: Checklist,  Next: Sending Patches,  Prev: Understanding Bug Reporting,  Up: Bugs
  6.  
  7. Checklist for Bug Reports
  8. -------------------------
  9.  
  10.    The best way to send a bug report is to mail it electronically to the
  11. Emacs maintainers at `bug-gnu-emacs@prep.ai.mit.edu'.  (If you want to
  12. suggest a change as an improvement, use the same address.)
  13.  
  14.    If you'd like to read the bug reports, you can find them on the
  15. newsgroup `gnu.emacs.bug'; keep in mind, however, that as a spectator
  16. you should not criticize anything about what you see there.  The
  17. purpose of bug reports is to give information to the Emacs maintainers.
  18. Spectators are welcome only as long as they do not interfere with
  19. this.  In particular, some bug reports contain large amounts of data;
  20. spectators should not complain about this.
  21.  
  22.    Please do not post bug reports using netnews; mail is more reliable
  23. than netnews about reporting your correct address, which we may need in
  24. order to ask you for more information.
  25.  
  26.    If you can't send electronic mail, then mail the bug report on paper
  27. or machine-readable media to this address:
  28.  
  29. GNU Emacs Bugs
  30. Free Software Foundation
  31. 59 Temple Place, Suite 330
  32. Boston, MA 02111-1307 USA
  33.  
  34.    We do not promise to fix the bug; but if the bug is serious, or
  35. ugly, or easy to fix, chances are we will want to.
  36.  
  37.    To enable maintainers to investigate a bug, your report should
  38. include all these things:
  39.  
  40.    * The version number of Emacs.  Without this, we won't know whether
  41.      there is any point in looking for the bug in the current version
  42.      of GNU Emacs.
  43.  
  44.      You can get the version number by typing `M-x emacs-version RET'.
  45.      If that command does not work, you probably have something other
  46.      than GNU Emacs, so you will have to report the bug somewhere else.
  47.  
  48.    * The type of machine you are using, and the operating system name
  49.      and version number.  `M-x emacs-version RET' provides this
  50.      information too.  Copy its output from the `*Messages*' buffer, so
  51.      that you get it all and get it accurately.
  52.  
  53.    * The operands given to the `configure' command when Emacs was
  54.      installed.
  55.  
  56.    * A complete list of any modifications you have made to the Emacs
  57.      source.  (We may not have time to investigate the bug unless it
  58.      happens in an unmodified Emacs.  But if you've made modifications
  59.      and you don't tell us, you are sending us on a wild goose chase.)
  60.  
  61.      Be precise about these changes.  A description in English is not
  62.      enough--send a context diff for them.
  63.  
  64.      Adding files of your own, or porting to another machine, is a
  65.      modification of the source.
  66.  
  67.    * Details of any other deviations from the standard procedure for
  68.      installing GNU Emacs.
  69.  
  70.    * The complete text of any files needed to reproduce the bug.
  71.  
  72.      If you can tell us a way to cause the problem without visiting any
  73.      files, please do so.  This makes it much easier to debug.  If you
  74.      do need files, make sure you arrange for us to see their exact
  75.      contents.  For example, it can often matter whether there are
  76.      spaces at the ends of lines, or a newline after the last line in
  77.      the buffer (nothing ought to care whether the last line is
  78.      terminated, but try telling the bugs that).
  79.  
  80.    * The precise commands we need to type to reproduce the bug.
  81.  
  82.      The easy way to record the input to Emacs precisely is to to write
  83.      a dribble file.  To start the file, execute the Lisp expression
  84.  
  85.           (open-dribble-file "~/dribble")
  86.  
  87.      using `M-ESC' or from the `*scratch*' buffer just after starting
  88.      Emacs.  From then on, Emacs copies all your input to the specified
  89.      dribble file until the Emacs process is killed.
  90.  
  91.    * For possible display bugs, the terminal type (the value of
  92.      environment variable `TERM'), the complete termcap entry for the
  93.      terminal from `/etc/termcap' (since that file is not identical on
  94.      all machines), and the output that Emacs actually sent to the
  95.      terminal.
  96.  
  97.      The way to collect the terminal output is to execute the Lisp
  98.      expression
  99.  
  100.           (open-termscript "~/termscript")
  101.  
  102.      using `M-ESC' or from the `*scratch*' buffer just after starting
  103.      Emacs.  From then on, Emacs copies all terminal output to the
  104.      specified termscript file as well, until the Emacs process is
  105.      killed.  If the problem happens when Emacs starts up, put this
  106.      expression into your `.emacs' file so that the termscript file
  107.      will be open when Emacs displays the screen for the first time.
  108.  
  109.      Be warned: it is often difficult, and sometimes impossible, to fix
  110.      a terminal-dependent bug without access to a terminal of the type
  111.      that stimulates the bug.
  112.  
  113.    * A description of what behavior you observe that you believe is
  114.      incorrect.  For example, "The Emacs process gets a fatal signal,"
  115.      or, "The resulting text is as follows, which I think is wrong."
  116.  
  117.      Of course, if the bug is that Emacs gets a fatal signal, then one
  118.      can't miss it.  But if the bug is incorrect text, the maintainer
  119.      might fail to notice what is wrong.  Why leave it to chance?
  120.  
  121.      Even if the problem you experience is a fatal signal, you should
  122.      still say so explicitly.  Suppose something strange is going on,
  123.      such as, your copy of the source is out of sync, or you have
  124.      encountered a bug in the C library on your system.  (This has
  125.      happened!)  Your copy might crash and the copy here might not.  If
  126.      you *said* to expect a crash, then when Emacs here fails to crash,
  127.      we would know that the bug was not happening.  If you don't say to
  128.      expect a crash, then we would not know whether the bug was
  129.      happening--we would not be able to draw any conclusion from our
  130.      observations.
  131.  
  132.    * If the manifestation of the bug is an Emacs error message, it is
  133.      important to report the precise text of the error message, and a
  134.      backtrace showing how the Lisp program in Emacs arrived at the
  135.      error.
  136.  
  137.      To get the error message text accurately, copy it from the
  138.      `*Messages*' buffer into the bug report.  Copy all of it, not just
  139.      part.
  140.  
  141.      To make a backtrace for the error, evaluate the Lisp expression
  142.      `(setq debug-on-error t)' before the error happens (that is to
  143.      say, you must execute that expression and then make the bug
  144.      happen).  This causes the error to run the Lisp debugger, which
  145.      shows you a backtrace.  Copy the text of the debugger's backtrace
  146.      into the bug report.
  147.  
  148.      This use of the debugger is possible only if you know how to make
  149.      the bug happen again.  If you can't make it happen again, at least
  150.      copy the whole error message.
  151.  
  152.    * Check whether any programs you have loaded into the Lisp world,
  153.      including your `.emacs' file, set any variables that may affect the
  154.      functioning of Emacs.  Also, see whether the problem happens in a
  155.      freshly started Emacs without loading your `.emacs' file (start
  156.      Emacs with the `-q' switch to prevent loading the init file.)  If
  157.      the problem does *not* occur then, you must report the precise
  158.      contents of any programs that you must load into the Lisp world in
  159.      order to cause the problem to occur.
  160.  
  161.    * If the problem does depend on an init file or other Lisp programs
  162.      that are not part of the standard Emacs system, then you should
  163.      make sure it is not a bug in those programs by complaining to
  164.      their maintainers first.  After they verify that they are using
  165.      Emacs in a way that is supposed to work, they should report the
  166.      bug.
  167.  
  168.    * If you wish to mention something in the GNU Emacs source, show the
  169.      line of code with a few lines of context.  Don't just give a line
  170.      number.
  171.  
  172.      The line numbers in the development sources don't match those in
  173.      your sources.  It would take extra work for the maintainers to
  174.      determine what code is in your version at a given line number, and
  175.      we could not be certain.
  176.  
  177.    * Additional information from a C debugger such as GDB might enable
  178.      someone to find a problem on a machine which he does not have
  179.      available.  If you don't know how to use GDB, please read the GDB
  180.      manual--it is not very long, and using GDB is easy.  You can find
  181.      the GDB distribution, including the GDB manual in online form, in
  182.      most of the same places you can find the Emacs distribution.
  183.  
  184.      However, you need to think when you collect the additional
  185.      information if you want it to show what causes the bug.
  186.  
  187.      For example, many people send just a backtrace, but that is not
  188.      very useful by itself.  A simple backtrace with arguments often
  189.      conveys little about what is happening inside GNU Emacs, because
  190.      most of the arguments listed in the backtrace are pointers to Lisp
  191.      objects.  The numeric values of these pointers have no
  192.      significance whatever; all that matters is the contents of the
  193.      objects they point to (and most of the contents are themselves
  194.      pointers).
  195.  
  196.      To provide useful information, you need to show the values of Lisp
  197.      objects in Lisp notation.  Do this for each variable which is a
  198.      Lisp object, in several stack frames near the bottom of the stack.
  199.      Look at the source to see which variables are Lisp objects,
  200.      because the debugger thinks of them as integers.
  201.  
  202.      To show a variable's value in Lisp syntax, first print its value,
  203.      then use the user-defined GDB command `pr' to print the Lisp
  204.      object in Lisp syntax.  (If you must use another debugger, call
  205.      the function `debug_print' with the object as an argument.)  The
  206.      `pr' command is defined by the file `.gdbinit' in the `src'
  207.      subdirectory, and it works only if you are debugging a running
  208.      process (not with a core dump).
  209.  
  210.      To make Lisp errors stop Emacs and return to GDB, put a breakpoint
  211.      at `Fsignal'.
  212.  
  213.      To find out which Lisp functions are running, using GDB, move up
  214.      the stack, and each time you get to a frame for the function
  215.      `Ffuncall', type these GDB commands:
  216.  
  217.           p *args
  218.           pr
  219.  
  220.      To print the first argument that the function received, use these
  221.      commands:
  222.  
  223.           p args[1]
  224.           pr
  225.  
  226.      You can print the other arguments likewise.  The argument `nargs'
  227.      of `Ffuncall' says how many arguments `Ffuncall' received; these
  228.      include the Lisp function itself and the arguments for that
  229.      function.
  230.  
  231.    * If the symptom of the bug is that Emacs fails to respond, don't
  232.      assume Emacs is "hung"--it may instead be in an infinite loop.  To
  233.      find out which, make the problem happen under GDB and stop Emacs
  234.      once it is not responding.  (If Emacs is using X Windows directly,
  235.      you can stop Emacs by typing `C-c' at the GDB job.)  Then try
  236.      stepping with `step'.  If Emacs is hung, the `step' command won't
  237.      return.  If it is looping, `step' will return.
  238.  
  239.      If this shows Emacs is hung in a system call, stop it again and
  240.      examine the arguments of the call.  In your bug report, state
  241.      exactly where in the source the system call is, and what the
  242.      arguments are.
  243.  
  244.      If Emacs is in an infinite loop, please determine where the loop
  245.      starts and ends.  The easiest way to do this is to use the GDB
  246.      command `finish'.  Each time you use it, Emacs resumes execution
  247.      until it exits one stack frame.  Keep typing `finish' until it
  248.      doesn't return--that means the infinite loop is in the stack frame
  249.      which you just tried to finish.
  250.  
  251.      Stop Emacs again, and use `finish' repeatedly again until you get
  252.      *back to* that frame.  Then use `next' to step through that frame.
  253.      By stepping, you will see where the loop starts and ends.  Also
  254.      please examine the data being used in the loop and try to
  255.      determine why the loop does not exit when it should.  Include all
  256.      of this information in your bug report.
  257.  
  258.    Here are some things that are not necessary in a bug report:
  259.  
  260.    * A description of the envelope of the bug--this is not necessary
  261.      for a reproducible bug.
  262.  
  263.      Often people who encounter a bug spend a lot of time investigating
  264.      which changes to the input file will make the bug go away and which
  265.      changes will not affect it.
  266.  
  267.      This is often time consuming and not very useful, because the way
  268.      we will find the bug is by running a single example under the
  269.      debugger with breakpoints, not by pure deduction from a series of
  270.      examples.  You might as well save time by not searching for
  271.      additional examples.
  272.  
  273.      Of course, if you can find a simpler example to report *instead* of
  274.      the original one, that is a convenience.  Errors in the output
  275.      will be easier to spot, running under the debugger will take less
  276.      time, etc.
  277.  
  278.      However, simplification is not vital; if you can't do this or
  279.      don't have time to try, please report the bug with your original
  280.      test case.
  281.  
  282.    * A system call trace of Emacs execution.
  283.  
  284.      System call traces are very useful for certain special kinds of
  285.      debugging, but in most cases they give little useful information.
  286.      It is therefore strange that many people seem to think that *the*
  287.      way to report information about a crash is to send a system call
  288.      trace.
  289.  
  290.      In most programs, a backtrace is normally far, far more
  291.      informative than a system call trace.  Even in Emacs, a simple
  292.      backtrace is generally more informative, though to give full
  293.      information you should supplement the backtrace by displaying
  294.      variable values and printing them as Lisp objects with `pr' (see
  295.      above).
  296.  
  297.    * A patch for the bug.
  298.  
  299.      A patch for the bug is useful if it is a good one.  But don't omit
  300.      the other information that a bug report needs, such as the test
  301.      case, on the assumption that a patch is sufficient.  We might see
  302.      problems with your patch and decide to fix the problem another
  303.      way, or we might not understand it at all.  And if we can't
  304.      understand what bug you are trying to fix, or why your patch
  305.      should be an improvement, we mustn't install it.
  306.  
  307.      *Note Sending Patches::, for guidelines on how to make it easy for
  308.      us to understand and install your patches.
  309.  
  310.    * A guess about what the bug is or what it depends on.
  311.  
  312.      Such guesses are usually wrong.  Even experts can't guess right
  313.      about such things without first using the debugger to find the
  314.      facts.
  315.  
  316. 
  317. File: emacs,  Node: Sending Patches,  Prev: Checklist,  Up: Bugs
  318.  
  319. Sending Patches for GNU Emacs
  320. -----------------------------
  321.  
  322.    If you would like to write bug fixes or improvements for GNU Emacs,
  323. that is very helpful.  When you send your changes, please follow these
  324. guidelines to make it easy for the maintainers to use them.  If you
  325. don't follow these guidelines, your information might still be useful,
  326. but using it will take extra work.  Maintaining GNU Emacs is a lot of
  327. work in the best of circumstances, and we can't keep up unless you do
  328. your best to help.
  329.  
  330.    * Send an explanation with your changes of what problem they fix or
  331.      what improvement they bring about.  For a bug fix, just include a
  332.      copy of the bug report, and explain why the change fixes the bug.
  333.  
  334.      (Referring to a bug report is not as good as including it, because
  335.      then we will have to look it up, and we have probably already
  336.      deleted it if we've already fixed the bug.)
  337.  
  338.    * Always include a proper bug report for the problem you think you
  339.      have fixed.  We need to convince ourselves that the change is
  340.      right before installing it.  Even if it is correct, we might have
  341.      trouble understanding it if we don't have a way to reproduce the
  342.      problem.
  343.  
  344.    * Include all the comments that are appropriate to help people
  345.      reading the source in the future understand why this change was
  346.      needed.
  347.  
  348.    * Don't mix together changes made for different reasons.  Send them
  349.      *individually*.
  350.  
  351.      If you make two changes for separate reasons, then we might not
  352.      want to install them both.  We might want to install just one.  If
  353.      you send them all jumbled together in a single set of diffs, we
  354.      have to do extra work to disentangle them--to figure out which
  355.      parts of the change serve which purpose.  If we don't have time
  356.      for this, we might have to ignore your changes entirely.
  357.  
  358.      If you send each change as soon as you have written it, with its
  359.      own explanation, then two changes never get tangled up, and we can
  360.      consider each one properly without any extra work to disentangle
  361.      them.
  362.  
  363.    * Send each change as soon as that change is finished.  Sometimes
  364.      people think they are helping us by accumulating many changes to
  365.      send them all together.  As explained above, this is absolutely
  366.      the worst thing you could do.
  367.  
  368.      Since you should send each change separately, you might as well
  369.      send it right away.  That gives us the option of installing it
  370.      immediately if it is important.
  371.  
  372.    * Use `diff -c' to make your diffs.  Diffs without context are hard
  373.      to install reliably.  More than that, they are hard to study; we
  374.      must always study a patch to decide whether we want to install it.
  375.      Unidiff format is better than contextless diffs, but not as easy
  376.      to read as `-c' format.
  377.  
  378.      If you have GNU diff, use `diff -c -F'^[_a-zA-Z0-9$]+ *('' when
  379.      making diffs of C code.  This shows the name of the function that
  380.      each change occurs in.
  381.  
  382.    * Write the change log entries for your changes.  This is both to
  383.      save us the extra work of writing them, and to help explain your
  384.      changes so we can understand them.
  385.  
  386.      The purpose of the change log is to show people where to find what
  387.      was changed.  So you need to be specific about what functions you
  388.      changed; in large functions, it's often helpful to indicate where
  389.      within the function the change was.
  390.  
  391.      On the other hand, once you have shown people where to find the
  392.      change, you need not explain its purpose in the change log.  Thus,
  393.      if you add a new function, all you need to say about it is that it
  394.      is new.  If you feel that the purpose needs explaining, it
  395.      probably does--but put the explanation in comments in the code.
  396.      It will be more useful there.
  397.  
  398.      Please read the `ChangeLog' files in the `src' and `lisp'
  399.      directories to see what sorts of information to put in, and to
  400.      learn the style that we use.  If you would like your name to
  401.      appear in the header line, showing who made the change, send us
  402.      the header line.  *Note Change Log::.
  403.  
  404.    * When you write the fix, keep in mind that we can't install a
  405.      change that would break other systems.  Please think about what
  406.      effect your change will have if compiled on another type of system.
  407.  
  408.      Sometimes people send fixes that *might* be an improvement in
  409.      general--but it is hard to be sure of this.  It's hard to install
  410.      such changes because we have to study them very carefully.  Of
  411.      course, a good explanation of the reasoning by which you concluded
  412.      the change was correct can help convince us.
  413.  
  414.      The safest changes are changes to the configuration files for a
  415.      particular machine.  These are safe because they can't create new
  416.      bugs on other machines.
  417.  
  418.      Please help us keep up with the workload by designing the patch in
  419.      a form that is clearly safe to install.
  420.  
  421. 
  422. File: emacs,  Node: Service,  Next: Command Arguments,  Prev: Bugs,  Up: Top
  423.  
  424. How To Get Help with GNU Emacs
  425. ==============================
  426.  
  427.    If you need help installing, using or changing GNU Emacs, there are
  428. two ways to find it:
  429.  
  430.    * Send a message to the mailing list
  431.      `help-gnu-emacs@prep.ai.mit.edu', or post your request on
  432.      newsgroup `gnu.emacs.help'.  (This mailing list and newsgroup
  433.      interconnect, so it does not matter which one you use.)
  434.  
  435.    * Look in the service directory for someone who might help you for a
  436.      fee.  The service directory is found in the file named
  437.      `etc/SERVICE' in the Emacs distribution.
  438.  
  439. 
  440. File: emacs,  Node: Command Arguments,  Next: Antinews,  Prev: Service,  Up: Top
  441.  
  442. Command Line Arguments
  443. **********************
  444.  
  445.    GNU Emacs supports command line arguments to request various actions
  446. when invoking Emacs.  These are for compatibility with other editors and
  447. for sophisticated activities.  We don't recommend using them for
  448. ordinary editing.
  449.  
  450.    Arguments starting with `-' are "options".  Other arguments specify
  451. files to visit.  Emacs visits the specified files while it starts up.
  452. The last file name on your command line becomes the current buffer; the
  453. other files are also present in other buffers.
  454.  
  455.    You can use options to specify various other things, such as the size
  456. and position of the X window Emacs uses, its colors, and so on.  A few
  457. options support advanced usage, such as running Lisp functions on files
  458. in batch mode.  The sections of this chapter describe the available
  459. options, arranged according to their purpose.
  460.  
  461.    There are two ways of writing options: the short forms that start
  462. with a single `-', and the long forms that start with `--'.  For
  463. example, `-d' is a short form and `--display' is the corresponding long
  464. form.
  465.  
  466.    The long forms with `--' are easier to remember, but longer to type.
  467. However, you don't have to spell out the whole option name; any
  468. unambiguous abbreviation is enough.  When a long option takes an
  469. argument, you can use either a space or an equal sign to separate the
  470. option name and the argument.  Thus, you can write either `--display
  471. sugar-bombs:0.0' or `--display=sugar-bombs:0.0'.  We recommend an equal
  472. sign because it makes the relationship clearer, and the tables below
  473. always show an equal sign.
  474.  
  475.    Most options specify how to initialize Emacs, or set parameters for
  476. the Emacs session.  We call them "initial options".  A few options
  477. specify things to do: for example, load libraries, call functions, or
  478. exit Emacs.  These are called "action options".  These and file names
  479. together are called "action arguments".  Emacs processes all the action
  480. arguments in the order they are written.
  481.  
  482. * Menu:
  483.  
  484. * Action Arguments::    Arguments to visit files, load libraries,
  485.               and call functions.
  486. * Initial Options::     Arguments that take effect while starting Emacs.
  487. * Command Example::     Examples of using command line arguments.
  488. * Resume Arguments::    Specifying arguments when you resume a running Emacs.
  489. * Environment::         Environment variables that Emacs uses.
  490.  
  491. * Display X::           Changing the default display and using remote login.
  492. * Font X::            Choosing a font for text, under X.
  493. * Colors X::            Choosing colors, under X.
  494. * Window Size X::       Start-up window size, under X.
  495. * Borders X::            Internal and external borders, under X.
  496. * Icons X::             Choosing what sort of icon to use, under X.
  497. * Resources X::         Advanced use of classes and resources, under X.
  498. * Lucid Resources::     X resources for Lucid menus.
  499. * Motif Resources::     X resources for Motif menus.
  500.  
  501. 
  502. File: emacs,  Node: Action Arguments,  Next: Initial Options,  Up: Command Arguments
  503.  
  504. Action Arguments
  505. ================
  506.  
  507.    Here is a table of the action arguments and options:
  508.  
  509. `FILE'
  510.      Visit FILE using `find-file'.  *Note Visiting::.
  511.  
  512. `+LINENUM FILE'
  513.      Visit FILE using `find-file', then go to line number LINENUM in it.
  514.  
  515. `-l FILE'
  516. `--load=FILE'
  517.      Load a file FILE of Lisp code with the function `load'.  *Note
  518.      Lisp Libraries::.
  519.  
  520. `-f FUNCTION'
  521. `--funcall=FUNCTION'
  522.      Call Lisp function FUNCTION with no arguments.
  523.  
  524. `--insert=FILE'
  525.      Insert the contents of FILE into the current buffer.  This is like
  526.      what `M-x insert-file' does.  *Note Misc File Ops::.
  527.  
  528. `--kill'
  529.      Exit from Emacs without asking for confirmation.
  530.  
  531.    The init file can access the values of the action arguments as the
  532. elements of a list in the variable `command-line-args'.  The init file
  533. can override the normal processing of the action arguments, or define
  534. new ones, by reading and setting this variable.
  535.  
  536. 
  537. File: emacs,  Node: Initial Options,  Next: Command Example,  Prev: Action Arguments,  Up: Command Arguments
  538.  
  539. Initial Options
  540. ===============
  541.  
  542.    The initial options specify parameter for the Emacs session.  This
  543. section describes the more general initial options; some other options
  544. specifically related to X Windows appear in the following sections.
  545.  
  546.    Some initial options affect the loading of init files.  The normal
  547. actions of Emacs are to first load `site-start.el' if it exists, then
  548. your own init file `~/.emacs' if it exists, and finally `default.el' if
  549. it exists; certain options prevent loading of some of these files or
  550. substitute other files for them.
  551.  
  552. `-t DEVICE'
  553. `--terminal=DEVICE'
  554.      Use DEVICE as the device for terminal input and output.
  555.  
  556. `-d DISPLAY'
  557. `--display=DISPLAY'
  558.      Use the X Window System and use the display named DISPLAY to open
  559.      the initial Emacs frame.
  560.  
  561. `-nw'
  562. `--no-windows'
  563.      Don't communicate directly with X, disregarding the `DISPLAY'
  564.      environment variable even if it is set.
  565.  
  566. `-batch'
  567. `--batch'
  568.      Run Emacs in "batch mode", which means that the text being edited
  569.      is not displayed and the standard terminal interrupt characters
  570.      such as `C-z' and `C-c' continue to have their normal effect.
  571.      Emacs in batch mode outputs to `stderr' only what would normally
  572.      be printed in the echo area under program control.
  573.  
  574.      Batch mode is used for running programs written in Emacs Lisp from
  575.      shell scripts, makefiles, and so on.  Normally the `-l' option or
  576.      `-f' option will be used as well, to invoke a Lisp program to do
  577.      the batch processing.
  578.  
  579.      `-batch' implies `-q' (do not load an init file).  It also causes
  580.      Emacs to kill itself after all command options have been
  581.      processed.  In addition, auto-saving is not done except in buffers
  582.      for which it has been explicitly requested.
  583.  
  584. `-q'
  585. `--no-init-file'
  586.      Do not load your Emacs init file `~/.emacs', or `default.el'
  587.      either.
  588.  
  589. `--no-site-file'
  590.      Do not load `site-start.el'.  The options `-q', `-u' and `-batch'
  591.      have no effect on the loading of this file--this is the only
  592.      option that blocks it.
  593.  
  594. `-u USER'
  595. `--user=USER'
  596.      Load USER's Emacs init file `~USER/.emacs' instead of your own.
  597.  
  598. `--debug-init'
  599.      Enable the Emacs Lisp debugger for errors in the init file.
  600.  
  601. 
  602. File: emacs,  Node: Command Example,  Next: Resume Arguments,  Prev: Initial Options,  Up: Command Arguments
  603.  
  604. Command Argument Example
  605. ========================
  606.  
  607.    Here is an example of using Emacs with arguments and options.  It
  608. assumes you have a Lisp program file called `hack-c.el' which, when
  609. loaded, performs some useful operation on current buffer, expected to be
  610. a C program.
  611.  
  612.      emacs -batch foo.c -l hack-c -f save-buffer >& log
  613.  
  614. This says to visit `foo.c', load `hack-c.el' (which makes changes in
  615. the visited file), save `foo.c' (note that `save-buffer' is the
  616. function that `C-x C-s' is bound to), and then exit back to the shell
  617. (because of `-batch').  `-batch' also guarantees there will be no
  618. problem redirecting output to `log', because Emacs will not assume that
  619. it has a display terminal to work with.
  620.  
  621. 
  622. File: emacs,  Node: Resume Arguments,  Next: Environment,  Prev: Command Example,  Up: Command Arguments
  623.  
  624. Resuming Emacs with Arguments
  625. =============================
  626.  
  627.    You can specify action arguments for Emacs when you resume it after
  628. a suspension.  To prepare for this, put the following code in your
  629. `.emacs' file (*note Hooks::.):
  630.  
  631.      (add-hook 'suspend-hook 'resume-suspend-hook)
  632.  
  633.    As further preparation, you must execute the shell script
  634. `emacs.csh' (if you use csh as your shell) or `emacs.bash' (if you use
  635. bash as your shell).  These scripts define an alias named `edit', which
  636. will resume Emacs giving it new command line arguments such as files to
  637. visit.
  638.  
  639.    Only action arguments work properly when you resume Emacs.  Initial
  640. arguments are not recognized--it's too late to execute them anyway.
  641.  
  642.    Note that resuming Emacs (with or without arguments) must be done
  643. from within the shell that is the parent of the Emacs job.  This is why
  644. `edit' is an alias rather than a program or a shell script.  It is not
  645. possible to implement a resumption command that could be run from other
  646. subjobs of the shell; no way to define a command that could be made the
  647. value of `EDITOR', for example.  Therefore, this feature does not take
  648. the place of the Emacs Server feature (*note Emacs Server::.).
  649.  
  650.    The aliases use the Emacs Server feature if you appear to have a
  651. server Emacs running.  However, they cannot determine this with complete
  652. accuracy.  They may think that a server is still running when in
  653. actuality you have killed that Emacs, because the file `/tmp/.esrv...'
  654. still exists.  If this happens, find that file and delete it.
  655.  
  656. 
  657. File: emacs,  Node: Environment,  Next: Display X,  Prev: Resume Arguments,  Up: Command Arguments
  658.  
  659. Environment Variables
  660. =====================
  661.  
  662.    This appendix describes how Emacs uses environment variables.  An
  663. environment variable is a string passed from the operating system to
  664. Emacs, and the collection of environment variables is known as the
  665. environment.  Environment variable names are case sensitive and it is
  666. conventional to use upper case letters only.
  667.  
  668.    Because environment variables come from the operating system there
  669. is no general way to set them; it depends on the operating system and
  670. especially the shell that you are using.  For example, here's how to set
  671. the environment variable `ORGANIZATION' to `not very much' using bash:
  672.  
  673.      export ORGANIZATION="not very much"
  674.  
  675. and here's how to do it in csh or tcsh:
  676.  
  677.      setenv ORGANIZATION "not very much"
  678.  
  679.    When Emacs is set-up to use the X windowing system, it inherits the
  680. use of a large number of environment variables from the X library.  See
  681. the X documentation for more information.
  682.  
  683. * Menu:
  684.  
  685. * General Variables::     Environment variables that all versions of Emacs use.
  686. * Misc Variables::        Certain system specific variables.
  687.  
  688. 
  689. File: emacs,  Node: General Variables,  Next: Misc Variables,  Up: Environment
  690.  
  691. General Variables
  692. -----------------
  693.  
  694. `AUTHORCOPY'
  695.      The name of a file used to archive news articles posted with the
  696.      GNUS package.
  697.  
  698. `CDPATH'
  699.      Used by the `cd' command.
  700.  
  701. `DOMAINNAME'
  702.      The name of the internet domain that the machine running Emacs is
  703.      located in.  Used by the GNUS package.
  704.  
  705. `EMACSDATA'
  706.      Used to initialize the variable `data-directory' used to locate the
  707.      architecture-independent files that come with Emacs.  Setting this
  708.      variable overrides the setting in `paths.h' when Emacs was built.
  709.  
  710. `EMACSLOADPATH'
  711.      A colon-separated list of directories from which to load Emacs Lisp
  712.      files.  Setting this variable overrides the setting in `paths.h'
  713.      when Emacs was built.
  714.  
  715. `EMACSLOCKDIR'
  716.      The directory that Emacs places lock files--files used to protect
  717.      users from editing the same files simultaneously.  Setting this
  718.      variable overrides the setting in `paths.h' when Emacs was built.
  719.  
  720. `EMACSPATH'
  721.      The location of Emacs-specific binaries.  Setting this variable
  722.      overrides the setting in `paths.h' when Emacs was built.
  723.  
  724. `ESHELL'
  725.      Used for shell-mode to override the `SHELL' environment variable.
  726.  
  727. `HISTFILE'
  728.      The name of the file that shell commands are saved in between
  729.      logins.  This variable defaults to `~/.history' if you use (t)csh
  730.      as shell, to `~/.bash_history' if you use bash, to `~/.sh_history'
  731.      if you use ksh, and to `~/.history' otherwise.
  732.  
  733. `HOME'
  734.      The location of the user's files in the directory tree; used for
  735.      expansion of file names starting with a tilde (`~').  On MS-DOS, it
  736.      defaults to the directory from which Emacs was started, with `/bin'
  737.      removed from the end if it was present.
  738.  
  739. `HOSTNAME'
  740.      The name of the machine that Emacs is running on.
  741.  
  742. `INCPATH'
  743.      A colon-separated list of directories.  Used by the `complete'
  744.      package to search for files.
  745.  
  746. `INFOPATH'
  747.      A colon separated list of directories holding info files.  Setting
  748.      this variable overrides the setting in `paths.el' when Emacs was
  749.      built.
  750.  
  751. `LOGNAME'
  752.      The user's login name.  See also `USER'.
  753.  
  754. `MAIL'
  755.      The name of the user's system mail box.
  756.  
  757. `MAILRC'
  758.      Name of file containing mail aliases.  This defaults to
  759.      `~/.mailrc'.
  760.  
  761. `MH'
  762.      Name of setup file for the mh system.  This defaults to
  763.      `~/.mh_profile'.
  764.  
  765. `NAME'
  766.      The real-world name of the user.
  767.  
  768. `NNTPSERVER'
  769.      The name of the news server.  Used by the mh and GNUS packages.
  770.  
  771. `ORGANIZATION'
  772.      The name of the organization to which you belong.  Used for
  773.      setting the `Organization:' header in your posts from the GNUS
  774.      package.
  775.  
  776. `PATH'
  777.      A colon-separated list of directories in which executables reside.
  778.      (On MS-DOS, it is semicolon-separated instead.)  This variable is
  779.      used to set the Emacs Lisp variable `exec-path' which you should
  780.      consider to use instead.
  781.  
  782. `PWD'
  783.      If set, this should be the default directory when Emacs was
  784.      started.
  785.  
  786. `REPLYTO'
  787.      If set, this specifies an initial value for the variable
  788.      `mail-default-reply-to'.  *Note Mail Headers::.
  789.  
  790. `SAVEDIR'
  791.      The name of a directory in which news articles are saved by
  792.      default.  Used by the GNUS package.
  793.  
  794. `SHELL'
  795.      The name of an interpreter used to parse and execute programs run
  796.      from inside Emacs.
  797.  
  798. `TERM'
  799.      The name of the terminal that Emacs is running on.  The variable
  800.      must be set unless Emacs is run in batch mode.  On MS-DOS, it
  801.      defaults to `internal', which specifies a built-in terminal
  802.      emulation that handles the machine's own display.
  803.  
  804. `TERMCAP'
  805.      The name of the termcap library file describing how to program the
  806.      terminal specified by the `TERM' variable.  This defaults to
  807.      `/etc/termcap'.
  808.  
  809. `TMPDIR'
  810.      Used by the Emerge package as a prefix for temporary files.
  811.  
  812. `TZ'
  813.      This specifies the current time zone and possibly also daylight
  814.      savings information.  On MS-DOS, the default is based on country
  815.      code; see the file `msdos.c' for details.
  816.  
  817. `USER'
  818.      The user's login name.  See also `LOGNAME'.  On MS-DOS, this
  819.      defaults to `root'.
  820.  
  821. `VERSION_CONTROL'
  822.      Used to initialize the `version-control' variable (*note Backup
  823.      Names::.).
  824.  
  825. 
  826. File: emacs,  Node: Misc Variables,  Prev: General Variables,  Up: Environment
  827.  
  828. Misc Variables
  829. --------------
  830.  
  831.    These variables are used only on particular configurations:
  832.  
  833. `COMSPEC'
  834.      On MS-DOS, the name of the command interpreter to use.  This is
  835.      used to make a default value for the `SHELL' environment variable.
  836.  
  837. `NAME'
  838.      On MS-DOS, this variable defaults to the value of the `USER'
  839.      variable.
  840.  
  841. `TEMP'
  842. `TMP'
  843.      On MS-DOS, these specify the name of the directory for storing
  844.      temporary files in.
  845.  
  846. `WINDOW_GFX'
  847.      Used when initializing the Sun windows system.
  848.  
  849. 
  850. File: emacs,  Node: Display X,  Next: Font X,  Prev: Environment,  Up: Command Arguments
  851.  
  852. Specifying the Display Name
  853. ===========================
  854.  
  855.    The environment variable `DISPLAY' tells all X clients, including
  856. Emacs, where to display their windows.  Its value is set up by default
  857. in ordinary circumstances, when you start an X server and run jobs
  858. locally.  Occasionally you may need to specify the display yourself; for
  859. example, if you do a remote login and want to run a client program
  860. remotely, displaying on your local screen.
  861.  
  862.    With Emacs, the main reason people change the default display is to
  863. let them log into another system, run Emacs on that system, but have the
  864. window displayed at their local terminal.  You might need to use login
  865. to another system because the files you want to edit are there, or
  866. because the Emacs executable file you want to run is there.
  867.  
  868.    The syntax of the `DISPLAY' environment variable is
  869. `HOST:DISPLAY.SCREEN', where HOST is the host name of the X Window
  870. System server machine, DISPLAY is an arbitrarily-assigned number that
  871. distinguishes your server (X terminal) from other servers on the same
  872. machine, and SCREEN is a rarely-used field that allows an X server to
  873. control multiple terminal screens.  The period and the SCREEN field are
  874. optional.  If included, SCREEN is usually zero.
  875.  
  876.    For example, if your host is named `glasperle' and your server is
  877. the first (or perhaps the only) server listed in the configuration, your
  878. `DISPLAY' is `glasperle:0.0'.
  879.  
  880.    You can specify the display name explicitly when you run Emacs,
  881. either by changing the `DISPLAY' variable, or with the option `-d
  882. DISPLAY' or `--display=DISPLAY'.  Here is an example:
  883.  
  884.      emacs --display=glasperle:0 &
  885.  
  886.    You can inhibit the direct use of X with the `-nw' option.  This is
  887. also an initial option.  It tells Emacs to display using ordinary ASCII
  888. on its controlling terminal.
  889.  
  890.    Sometimes, security arrangements prevent a program on a remote system
  891. from displaying on your local system.  In this case, trying to run Emacs
  892. produces messages like this:
  893.  
  894.      Xlib:  connection to "glasperle:0.0" refused by server
  895.  
  896. You might be able to overcome this problem by using the `xhost' command
  897. on the local system to give permission for access from your remote
  898. machine.
  899.  
  900. 
  901. File: emacs,  Node: Font X,  Next: Colors X,  Prev: Display X,  Up: Command Arguments
  902.  
  903. Font Specification Options
  904. ==========================
  905.  
  906.    By default, Emacs displays text in the font named `9x15', which
  907. makes each character nine pixels wide and fifteen pixels high.  You can
  908. specify a different font on your command line through the option `-fn
  909. NAME'.
  910.  
  911. `-fn NAME'
  912.      Use font NAME as the default font.
  913.  
  914. `--font=NAME'
  915.      `--font' is an alias for `-fn'.
  916.  
  917.    Under X, each font has a long name which consists of eleven words or
  918. numbers, separated by dashes.  Some fonts also have shorter
  919. nicknames--`9x15' is such a nickname.  You can use either kind of name.
  920. You can use wild card patterns for the font name; then Emacs lets X
  921. choose one of the fonts that match the pattern.  Here is an example,
  922. which happens to specify the font whose nickname is `6x13':
  923.  
  924.      emacs -fn "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1" &
  925.  
  926. You can also specify the font in your `.Xdefaults' file:
  927.  
  928.      emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1
  929.  
  930.    A long font name has the following form:
  931.  
  932.      -MAKER-FAMILY-WEIGHT-SLANT-WIDTHTYPE-STYLE...
  933.      ...-PIXELS-HEIGHT-HORIZ-VERT-SPACING-WIDTH-CHARSET
  934.  
  935. FAMILY
  936.      This is the name of the font family-for example, `courier'.
  937.  
  938. WEIGHT
  939.      This is normally `bold', `medium' or `light'.  Other words may
  940.      appear here in some font names.
  941.  
  942. SLANT
  943.      This is `r' (roman), `i' (italic), `o' (oblique), `ri' (reverse
  944.      italic), or `ot' (other).
  945.  
  946. WIDTHTYPE
  947.      This is normally `condensed', `extended', `semicondensed' or
  948.      `normal'.  Other words may appear here in some font names.
  949.  
  950. STYLE
  951.      This is an optional additional style name.  Usually it is
  952.      empty--most long font names have two hyphens in a row at this
  953.      point.
  954.  
  955. PIXELS
  956.      This is the font height, in pixels.
  957.  
  958. HEIGHT
  959.      This is the font height on the screen, measured in printer's points
  960.      (approximately 1/72 of an inch), times ten.  For a given vertical
  961.      resolution, HEIGHT and PIXELS are proportional; therefore, it is
  962.      common to specify just one of them and use `*' for the other.
  963.  
  964. HORIZ
  965.      This is the horizontal resolution, in pixels per inch, of the
  966.      screen for which the font is intended.
  967.  
  968. VERT
  969.      This is the vertical resolution, in dots per inch, of the screen
  970.      for which the font is intended.  Normally the resolution of the
  971.      fonts on your system is the right value for your screen;
  972.      therefore, you normally specify `*' for this and HORIZ.
  973.  
  974. SPACING
  975.      This is `m' (monospace), `p' (proportional) or `c' (character
  976.      cell).  Emacs can use `m' and `c' fonts.
  977.  
  978. WIDTH
  979.      This is the average character width, in pixels, times ten.
  980.  
  981. CHARSET
  982.      This is the character set that the font depicts.  Normally you
  983.      should use `iso8859-1'.
  984.  
  985.    Use only fixed width fonts--that is, fonts in which all characters
  986. have the same width; Emacs cannot yet handle display properly for
  987. variable width fonts.  Any font with `m' or `c' in the SPACING field of
  988. the long name is a fixed width font.  Here's how to use the `xlsfonts'
  989. program to list all the fixed width fonts available on your system:
  990.  
  991.      xlsfonts -fn '*x*'
  992.      xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*'
  993.      xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*'
  994.  
  995. To see what a particular font looks like, use the `xfd' command.  For
  996. example:
  997.  
  998.      xfd -fn 6x13
  999.  
  1000. displays the entire font `6x13'.
  1001.  
  1002.    While running Emacs, you can set the font of the current frame
  1003. (*note Frame Parameters::.) or for a specific kind of text (*note
  1004. Faces::.).
  1005.  
  1006. 
  1007. File: emacs,  Node: Colors X,  Next: Window Size X,  Prev: Font X,  Up: Command Arguments
  1008.  
  1009. Window Color Options
  1010. ====================
  1011.  
  1012.    On a color display, you can specify which color to use for various
  1013. parts of the Emacs display.  To find out what colors are available on
  1014. your system, look at the `/usr/lib/X11/rgb.txt' file.  If you do not
  1015. specify colors, the default for the background is white and the default
  1016. for all other colors is black.  On a monochrome display, the foreground
  1017. is black, the background is white, and the border is gray if the
  1018. display supports that.
  1019.  
  1020.    Here is a list of the options for specifying colors:
  1021.  
  1022. `-fg COLOR'
  1023. `--foreground-color=COLOR'
  1024.      Specify the foreground color.
  1025.  
  1026. `-bg COLOR'
  1027. `--background-color=COLOR'
  1028.      Specify the background color.
  1029.  
  1030. `-bd COLOR'
  1031. `--border-color=COLOR'
  1032.      Specify the color of the border of the X window.
  1033.  
  1034. `-cr COLOR'
  1035. `--cursor-color=COLOR'
  1036.      Specify the color of the Emacs cursor which indicates where point
  1037.      is.
  1038.  
  1039. `-ms COLOR'
  1040. `--mouse-color=COLOR'
  1041.      Specify the color for the mouse cursor when the mouse is in the
  1042.      Emacs window.
  1043.  
  1044. `-r'
  1045. `--reverse-video'
  1046.      Reverse video--swap the foreground and background colors.
  1047.  
  1048.    For example, to use a coral mouse cursor and a slate blue text
  1049. cursor, enter:
  1050.  
  1051.      emacs -ms coral -cr 'slate blue' &
  1052.  
  1053.    You can reverse the foreground and background colors through the
  1054. `-r' option or with the X resource `reverseVideo'.
  1055.  
  1056. 
  1057. File: emacs,  Node: Window Size X,  Next: Borders X,  Prev: Colors X,  Up: Command Arguments
  1058.  
  1059. Options for Window Geometry
  1060. ===========================
  1061.  
  1062.    The `-geometry' option controls the size and position of the initial
  1063. Emacs frame.  Here is the format for specifying the window geometry:
  1064.  
  1065. `-g WIDTHxHEIGHT{+-}XOFFSET{+-}YOFFSET'
  1066.      Specify window size WIDTH and HEIGHT (measured in character
  1067.      columns and lines), and positions XOFFSET and YOFFSET (measured in
  1068.      pixels).
  1069.  
  1070. `--geometry=WIDTHxHEIGHT{+-}XOFFSET{+-}YOFFSET'
  1071.      This is another way of writing the same thing.
  1072.  
  1073. `{+-}' means either a plus sign or a minus sign.  A plus sign before
  1074. XOFFSET means it is the distance from the left side of the screen; a
  1075. minus sign means it counts from the right side.  A plus sign before
  1076. YOFFSET means it is the distance from the top of the screen, and a
  1077. minus sign there indicates the distance from the bottom.  The values
  1078. XOFFSET and YOFFSET may themselves be positive or negative, but that
  1079. doesn't change their meaning, only their direction.
  1080.  
  1081.    Emacs uses the same units as `xterm' does to interpret the geometry.
  1082. The WIDTH and HEIGHT are measured in characters, so a large font
  1083. creates a larger frame than a small font.  The XOFFSET and YOFFSET are
  1084. measured in pixels.
  1085.  
  1086.    Since the mode line and the echo area occupy the last 2 lines of the
  1087. frame, the height of the initial text window is 2 less than the height
  1088. specified in your geometry.  In non-X-toolkit versions of Emacs, the
  1089. menu bar also takes one line of the specified number.
  1090.  
  1091.    You do not have to specify all of the fields in the geometry
  1092. specification.
  1093.  
  1094.    If you omit both XOFFSET and YOFFSET, the window manager decides
  1095. where to put the Emacs frame, possibly by letting you place it with the
  1096. mouse.  For example, `164x55' specifies a window 164 columns wide,
  1097. enough for two ordinary width windows side by side, and 55 lines tall.
  1098.  
  1099.    The default width for Emacs is 80 characters and the default height
  1100. is 40 lines.  You can omit either the width or the height or both.  If
  1101. you start the geometry with an integer, Emacs interprets it as the
  1102. width.  If you start with an `x' followed by an integer, Emacs
  1103. interprets it as the height.  Thus, `81' specifies just the width;
  1104. `x45' specifies just the height.
  1105.  
  1106.    If you start with `+' or `-', that introduces an offset, which means
  1107. both sizes are omitted.  Thus, `-3' specifies the XOFFSET only.  (If
  1108. you give just one offset, it is always XOFFSET.)  `+3-3' specifies both
  1109. the XOFFSET and the YOFFSET, placing the frame near the bottom left of
  1110. the screen.
  1111.  
  1112.    You can specify a default for any or all of the fields in
  1113. `.Xdefaults' file, and then override selected fields with a
  1114. `--geometry' option.
  1115.  
  1116. 
  1117. File: emacs,  Node: Borders X,  Next: Icons X,  Prev: Window Size X,  Up: Command Arguments
  1118.  
  1119. Internal and External Borders
  1120. =============================
  1121.  
  1122.    An Emacs frame has an internal border and an external border.  The
  1123. internal border is an extra strip of the background color around all
  1124. four edges of the frame.  Emacs itself adds the internal border.  The
  1125. external border is added by the window manager outside the internal
  1126. border; it may contain various boxes you can click on to move or iconify
  1127. the window.
  1128.  
  1129. `-ib WIDTH'
  1130. `--internal-border=WIDTH'
  1131.      Specify WIDTH as the width of the internal border.
  1132.  
  1133. `-bw WIDTH'
  1134. `--border-width=WIDTH'
  1135.      Specify WIDTH as the width of the main border.
  1136.  
  1137.    When you specify the size of the frame, that does not count the
  1138. borders.  The frame's position is measured from the outside edge of the
  1139. external border.
  1140.  
  1141.    Use the `-ib N' option to specify an internal border N pixels wide.
  1142. The default is 1.  Use `-bw N' to specify the width of the external
  1143. border (though the window manager may not pay attention to what you
  1144. specify).  The default width of the external border is 2.
  1145.  
  1146. 
  1147. File: emacs,  Node: Icons X,  Next: Resources X,  Prev: Borders X,  Up: Command Arguments
  1148.  
  1149. Icons
  1150. =====
  1151.  
  1152.    Most window managers allow the user to "iconify" a frame, removing
  1153. it from sight, and leaving a small, distinctive "icon" window in its
  1154. place.  Clicking on the icon window makes the frame itself appear again.
  1155. If you have many clients running at once, you can avoid cluttering up
  1156. the screen by iconifying most of the clients.
  1157.  
  1158. `-i'
  1159. `--icon-type'
  1160.      Use a picture of a gnu as the Emacs icon.
  1161.  
  1162. `-iconic'
  1163. `--iconic'
  1164.      Start Emacs in iconified state.
  1165.  
  1166.    The `-i' or `--icon-type' option tells Emacs to use an icon window
  1167. containing a picture of the GNU gnu.  If omitted, Emacs lets the window
  1168. manager choose what sort of icon to use--usually just a small rectangle
  1169. containing the frame's title.
  1170.  
  1171.    The `-iconic' option tells Emacs to begin running as an icon, rather
  1172. than opening a frame right away.  In this situation, the icon window
  1173. provides only indication that Emacs has started; the usual text frame
  1174. doesn't appear until you deiconify it.
  1175.  
  1176.